package com.ityj.yygh.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ityj.yygh.model.user.UserInfo;
import com.ityj.yygh.vo.user.LoginVo;
import com.ityj.yygh.vo.user.UserInfoQueryVo;

import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    Map<String, Object> loginWithPhone(LoginVo loginVo);

    IPage<UserInfo> searchUserInfoByCondition(UserInfoQueryVo userInfoQueryVo, Page<UserInfo> pageParam);

    void updateStatus(Long userId, Integer status);

    Map<String, Object> getUserDetail(Long userId);

    void approve(Long userId, Integer authStatus);
}
